<div class="page-header">
  <h1><?php $this->pageTitle=Yii::app()->name . ' - Вход'; ?> <small>Вход</small></h1>
</div>

<?php echo  CHtml::form(Yii::app()->urlManager->baseUrl."/site/login","post");?>
<?php echo CHtml::errorSummary($model); ?>

<table>
	<tr>
		<td><?php echo CHtml::activeLabel($model,'email', array("label" => "Email: ")); ?></td>
		<td><?php echo CHtml::activeTextField($model, 'email', array('placeholder' => 'Email address', 'class'=>"form-control")); ?></td>
	</tr>
	<tr>
		<td><?php echo CHtml::activeLabel($model,'pass', array("label" => "Пароль: ")); ?></td>
		<td><?php echo CHtml::activePasswordField($model, 'pass', array('placeholder' => 'Password', 'class'=>"form-control")); ?></td>
	</tr>
	<tr>
		<td><?php echo CHtml::submitButton('Вход', array('class'=>"btn btn-lg btn-primary btn-block")); ?></td>
		<td><?php echo CHtml::link('Регистрация', '/registration/', array('class'=>"btn btn-lg btn-primary btn-block"));?></td>
	</tr>
	<tr>
		<td colspan="2"><a href="<?php echo Yii::app()->urlManager->baseUrl.'/site/forgotpassword'?>">Забыли пароль?</a></td>
	</tr>
</table>

<?php echo  CHtml::endform(); ?>



<?php  $this->widget('application.components.LoginzaWidget', array(
    'params'=>array(
        'return_url'=>'site/loginzalogin',
        'logout_url'=>'site/logout',
        'providers_set'=>array('google','vkontakte','facebook','twitter','rambler','openid','mailru','yandex','mailruapi'),
    ),
)); ?>